package com.wlhse.dao;

import com.wlhse.entity.ProblemFactorPojo;
import com.wlhse.entity.ProblemSourcePojo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface ProblemFactorDao {
    List<ProblemFactorPojo> queryProblemFactor();

    int updateProblemFactorPojo(ProblemFactorPojo pojo);

    int deleteProblemFactorPojo(@Param("nodeCode") String nodeCode);

    int queryChildNode(@Param("nodeCode") String nodeCode);

    int insertProblemFactorPojo(ProblemFactorPojo pojo);

    int insertSingle(ProblemFactorPojo pojo);

    String getMaxString(@Param("parent") String parent, @Param("length") Integer length, @Param("length2") Integer length2);

    String queryNameByLenthAndCode(@Param("wordLenth")int wordLenth,@Param("code") String code, @Param("sonName")String sonName);

    int selectProblemFactorCode(@Param("nodeCode") String nodeCode);
}
